import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './registerServiceWorker'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import components from './components'
import echarts from 'echarts'
import $http from './utils/http';


//使用mock模拟数据
require('./mock.js');
Vue.config.productionTip = false;
Vue.use(ElementUI);
Vue.use(components);
Vue.prototype.$echarts = echarts;
Vue.prototype.$axios = $http;



new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
